package org.jeecg.modules.wlhy.hywarningmessage.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.wlhy.hywarningmessage.entity.HyWarningMessage;

import java.util.List;

/**
 * @Description: 告警消息
 * @Author: duanlikao
 * @Date:   2020-12-22
 * @Version: V1.0
 */
public interface HyWarningMessageMapper extends BaseMapper<HyWarningMessage> {

    HyWarningMessage getMessageByObjectIdAndMessageType(@Param("objectId") String objectId, @Param("messageType") Integer messageType);

    List<HyWarningMessage> getMessageByUserId(@Param("userId") String userId);
}
